<template>
  <view class="contant">
	<policyAgreement :dictionary='state.dictionary' :type-code='state.typeCode' :id="state.id"  ></policyAgreement>
  </view>
</template>

<script lang="ts" setup>
//传子组件类型是图片还是内容，id多少，进而做图片以及富文本的处理
import { ref,reactive } from "vue";
import { onShow } from "@dcloudio/uni-app";
// import { memberAddressesList,memberAddressesDelete } from "@/utils/api";
import policyAgreement from "@/components/policyAgreement";
const state = reactive({
		dictionary: "1", // 字典值,后台路由配置，1-99 开发自用，大于100为用户自配
		typeCode: "news", // 类型是图片还是内容，pic以及news
		id: 27, // 具体的相应字典,相应类型的某一条数据,需从列表接口自己检索                
		// dictionary: "1", // 字典值,后台路由配置，1-99 开发自用，大于100为用户自配
		// typeCode: "pic", // 类型是图片还是内容，pic以及news
		// id: 9, // 具体的相应字典,相应类型的某一条数据,需从列表接口自己检索       																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									   
	})
onShow(async () => {
  // const {data} = await memberAddressesList();
  // itemlists.value=data
});

</script>
<style lang="scss" scoped>

</style>
